<?php

/**
 * @author FROSTY (valik619)
 * @site nadmad.ru
 * @mail valik619@inbox.ru
 */
 
$title = 'WBCMS - wap blogs CMS';
$root = '../../';
include('../../system/core.php');

if (!$uid) {
    header('Location: http://'.$set['home'].'/login.php');
    exit;
}

if ($user['rights'] != 1) {
    header('Location: http://'.$set['home'].'/index.php');
    exit;
}

$pr = $_GET['id'];
if(!$pr){
    echo 'ERROR!';
}
$file = mysql_query("SELECT * FROM `import` WHERE `id` = '$pr'");
$name = mysql_fetch_assoc($file);
unlink("$name[name]");
mysql_query("DELETE FROM `import` WHERE `id`='$pr'");
header('location: http://'.$set['home'].'/admin/files.php?a=files');

include('../../system/foot.php');

/**
 * @author FROSTY (valik619)
 * @site nadmad.ru
 * @mail valik619@inbox.ru
 */

?>